/*
 * @Description: 
 * @Author: jichengy
 * @Date: 2024-11-25
 * @LastEditors: jichengy
 * @LastEditTime: 2024-11-25
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  build: {
    lib: {
      entry: 'packages/myui/index.js',
      name: 'myui',
      fileName: (format) => `myui.${format}.js`
    },
    outDir: 'lib',
    rollupOptions: {
      output: {
        exports: 'named'
      }
    }
  },
  plugins: [vue()],
})
